<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>新增安全检查表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../../../css/public.css" media="all"/>
    <link rel="stylesheet" href="../../common/zTreeStyle.css"/>
    <link rel="stylesheet" href="detail.css"/>
</head>

<body class="childrenBody" style="background: white;">
<div class="topsty">
    <div style="display: inline;">
				<span style="font-size: 15px;">
					<i class="layui-icon" style="color: #1E9FFF;margin:0 10px 0 30px;">&#xe65b;</i>
					<span id="pageTitle">试卷详情</span>
				</span>
    </div>
    <div class="backtit" style="top: -5px;">
        <div class="back_san"></div>
        <a onclick="history.go(-1)" class="layui-btn layui-btn-normal">返回</a>
    </div>
</div>
<form class="layui-form" style="margin-top: 14px;margin-bottom: 15px;border-bottom: 1px solid #E5E5E5">
    <table class="layui-table " lay-skin="nob" style="background: white;">
        <colgroup>
            <col width="10%">
            <col width="23%">
            <col width="10%">
            <col width="23%">
            <col width="10%">
            <col width="23%">
        </colgroup>
        <tbody>
        <tr>
            <td>
                <div class="layui-input-inline ftdl"><label class="fowei">试卷名称</label></div>
            </td>
            <td>
                <input type="text" class="layui-input" id="title" placeholder="输入试卷名称" disabled/>
            </td>
            <td>
                <label class="fowei ftdl">适用单位</label>
            </td>
            <td style="padding-right: 0px;">
                <input type="text" id="entId" readonly="" placeholder="选择单位" style="padding-left:5px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;
                 -webkit-box-orient:vertical;" autocomplete="off" class="layui-input" lay-verify="required" disabled>
                <ul id="danwei" class="ztree" style="height:300px;width: 239px; overflow: auto;display: none;position: absolute;z-index: 999;background:white;">
                </ul>
            </td>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <label class="fowei ftdl">考试类型</label>
            </td>
            <td>
                <select name="" id="examType" disabled>
                    <option value="0">模拟练习</option>
                    <option value="1">班组测试</option>
                    <option value="2">专项测试</option>
                </select>
            </td>
            <td>
                <label class="fowei ftdl">考试时长</label>
            </td>
            <td style="padding-right: 0px;">
                <input type="text" class="layui-input" id="duration" placeholder="输入试卷名称" disabled/>
            </td>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <label class="fowei ftdl">答题开始日期</label>
            </td>
            <td>
                <div class="outTime">不限期</div>
                <input type="text" class="layui-input" id="startTime" readonly="" placeholder="开始日期" disabled>
            </td>
            <td>
                <label class="fowei ftdl">答题结束日期</label>
            </td>
            <td style="padding-right: 0px;">
                <input type="text" class="layui-input" id="endTime" readonly="" placeholder="结束日期" disabled>
            </td>
            <td colspan="2">
            </td>
        </tr>
        </tbody>
    </table>
</form>
<form class="layui-form" style="margin-top: 14px;margin-bottom: 15px;">
    <table class="layui-table " lay-skin="nob" style="background: white;">
        <colgroup>
            <col width="10%">
            <col width="23%">
            <col width="10%">
            <col width="23%">
            <col width="10%">
            <col width="23%">
        </colgroup>
        <tbody>
        <tr>
            <td>
                <div class="layui-input-inline ftdl"><label class="fowei">单选题分值</label></div>
            </td>
            <td>
                <input type="text" class="layui-input numbox" id="radio" placeholder="输入分值" disabled/>
                <span class="num">单选题数    <b class="radio_num">0</b>题</span>
            </td>
            <td colspan="2" rowspan="4">
                <div class="red_box">
                    <p>试题数：共0道题目</p>
                    <span>点击查看已选试题</span>
                </div>
            </td>

            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <label class="fowei ftdl">多选题分值</label>
            </td>
            <td>
                <input type="text" class="layui-input numbox" id="multiSelect" placeholder="输入分值" disabled/>
                <span class="num">多选题数    <b class="multiSelect_num">0</b>题</span>
            </td>

            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <label class="fowei ftdl">判断题分值</label>
            </td>
            <td>
                <input type="text" class="layui-input numbox" id="tfng" placeholder="输入分值" disabled/>
                <span class="num">判断题数    <b class="tfng_num">0</b>题</span>
            </td>

            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td>
                <label class="fowei ftdl">试题顺序</label>
            </td>
            <td>
                <select name="" id="sortType" disabled>
                    <option value="单选—多选—判断">单选—多选—判断</option>
                    <option value="单选—判断—多选">单选—判断—多选</option>
                    <option value="多选—单选—判断">多选—单选—判断</option>
                    <option value="多选—判断—单选">多选—判断—单选</option>
                    <option value="判断—单选—多选">判断—单选—多选</option>
                    <option value="判断—多选—单选">判断—多选—单选</option>
                </select>
            </td>

            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="4">

            </td>
            <td colspan="2">
            </td>
        </tr>
        </tbody>
    </table>
</form>

<script type="text/javascript" src="../../common/jquery.min.js"></script>
<script type="text/javascript" src="../../common/config.js"></script>
<script type="text/javascript" src="../../../layui/layui.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.core.js"></script>
<script type="text/javascript" src="../../common/jquery.ztree.excheck.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript" src="detail.js"></script>

<script>
    $("body").click(function () {
        $("#danwei").hide();
    })
    $('#danwei,#entId').click(function () {
        return false;
    });
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate;

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

        //自定义验证规则
        form.verify({
            title: function (value) {
                if (value.length < 5) {
                    return '标题至少得5个字符啊';
                }
            }
            , pass: [/(.+){6,12}$/, '密码必须6到12位']
            , content: function (value) {
                layedit.sync(editIndex);
            }
        });

        //监听指定开关
        form.on('switch(switchTest)', function (data) {
            layer.msg('开关checked：' + (this.checked ? 'true' : 'false'), {
                offset: '6px'
            });
            layer.tips('温馨提示：请注意开关状态的文字可以随意定义，而不仅仅是ON|OFF', data.othis)
        });

        //监听提交
        form.on('submit(demo1)', function (data) {
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });

    });


</script>
</body>

</html>